package com.small.nacos.naming.consistency;

/**
 * @Author zhoujin
 * @Date 2022/7/23 12:34
 */
public class KeyBuilder {

    public static final String NAMESPACE_KEY_CONNECTOR = "##";


    public static final String SERVICE_META_KEY_PREFIX = "com.small.nacos.naming.domains.meta.";

    public static String buildServiceMetaKey(String namespaceId, String serviceName) {
        return SERVICE_META_KEY_PREFIX + namespaceId + NAMESPACE_KEY_CONNECTOR + serviceName;
    }
}
